<template>
	<view class="container">
		<rich-text :nodes="protocol"></rich-text>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				protocol: '',
			}
		},
		onLoad() {
			this.onRequestProtocol();
		},
		methods: {
			onPressToNavigate() {
				uni.navigateBack();
			},
			async onRequestProtocol() {
				let url = this.ServicesApi.protocol;
				let data = {};
				let result = await this.Services.post(url, data);
				if (result.code == this.StatusCode.SUCCESS_CODE) {
					this.protocol = result.data.protocol;
				}
			}
		}
	}
</script>

<style scoped lang="stylus">
	.container {
		padding: 40rpx;
		background: #fff;
		line-height: 48rpx;
		text-align: justify;
	}
</style>
